import request from '@/utils/request'
// 查询 活动列表
export function listStory(query) {
    return request({
        url: '/dts/storyManage/list',
        method: 'get',
        params: query
    })
}

// 查询 详细
export function getStory(id) {
    return request({
        url: '/dts/storyManage/' + id,
        method: 'get'
    })
}

// 新增 
export function addStory(data) {
    return request({
        url: '/dts/storyManage',
        method: 'post',
        data: data
    })
}

// 修改 
export function updateStory(data) {
    return request({
        url: '/dts/storyManage',
        method: 'put',
        data: data
    })
}

// 删除 
export function delStory(id) {
    return request({
        url: '/dts/storyManage/' + id,
        method: 'delete'
    })
}

// 查询 故事投票列表
export function listVoteStory(query) {
    return request({
        url: '/dts/storyVoting/list',
        method: 'get',
        params: query
    })
}
// 删除故事投票
export function delVoteStory(id) {
    return request({
        url: '/dts/storyVoting/' + id,
        method: 'delete'
    })
}

// 查询 活动列表
export function listCirclFriend(query) {
    return request({
        url: '/dts/dtsUserFriend/list',
        method: 'get',
        params: query
    })
}

// 查询 详细
export function getCirclFriend(id) {
    return request({
        url: '/dts/dtsUserFriend/' + id,
        method: 'get'
    })
}

// 新增 
export function addCirclFriend(data) {
    return request({
        url: '/dts/dtsUserFriend',
        method: 'post',
        data: data
    })
}

// 修改 
export function updateCirclFriend(data) {
    return request({
        url: '/dts/dtsUserFriend',
        method: 'put',
        data: data
    })
}

// 删除 
export function delCirclFriend(id) {
    return request({
        url: '/dts/dtsUserFriend/' + id,
        method: 'delete'
    })
}